import type { Good } from "./good";

/** 订单项模型 */
export type OrderItem = {
  id: number;
  created_at: string;
  updated_at: string;
  deleted_at?: string | null;
  orderId: number;
  goodId: number;
  quantity: number;
  subtotal: number;
  good: Good;
};

/** 订单模型 */
export type Order = {
  id: number;
  created_at: string;
  updated_at: string;
  deleted_at?: string | null;
  totalAmount: number;
  status: number;
  receiverName: string;
  receiverPhone: string;
  receiverAddress: string;
  remark: string;
  orderItems: OrderItem[];
  openid: string;
};
